/** @file res_handle.cpp
	@brief Resource handle (empty file) */

#include "res/res_handle.h"
/*
using namespace G3;

//==============================================================================
// Constructor
//==============================================================================
template <typename HType>
G3::HANDLE<HType>::HANDLE () {
	Handle = 0;
	Log = &G3::MainLog;
}

//==============================================================================
// Makes it possible to cast this handle to an unsigned int
//==============================================================================
template <typename HType>
G3::HANDLE<HType>::operator uint (void) const {
	return Handle;
}

//==============================================================================
// = operator
//==============================================================================
template <typename HType>
G3::HANDLE<HType>& G3::HANDLE<HType>::operator= (const HANDLE<HType> &h) {
	Handle = h.Handle;

	return *this;
}

//==============================================================================
// == operator
//==============================================================================
template <typename HType>
bool G3::HANDLE<HType>::operator== (const HANDLE<HType> &h) const {
	return (Handle == h.Handle);
}

//==============================================================================
// != operator
//==============================================================================
template <typename HType>
bool G3::HANDLE<HType>::operator!= (const HANDLE<HType> &h) const {
	return (Handle != h.Handle);
}

//==============================================================================
// Gives the handle an index
//==============================================================================
template <typename HType>
bool G3::HANDLE<HType>::Init (uint Index) {
	Assert (IsNull (), "HANDLE::Init: Trying to reassign a non-Null handle");
	Assert (Index <= MAX_INDEX, "HANDLE::Init: Index argument is too big");

	static uint MagicCount = 0;
	// Magic 0 is used for NULL handles
	if (++MagicCount > MAX_MAGIC)
		MagicCount = 1;

	bIndex = Index;
	bMagic = MagicCount;

	return true;
}

//==============================================================================
// Gets the handle index number
//==============================================================================
template <typename HType>
uint G3::HANDLE<HType>::GetIndex () const {
	return bIndex;
}

//==============================================================================
// Gets the handle magic number
//==============================================================================
template <typename HType>
uint G3::HANDLE<HType>::GetMagic () const {
	return bMagic;
}

//==============================================================================
// Gets the handle number
//==============================================================================
template <typename HType>
uint G3::HANDLE<HType>::GetHandle () const {
	return Handle;
}

//==============================================================================
// Checks if the handle is valid
//==============================================================================
template <typename HType>
bool G3::HANDLE<HType>::IsNull () const {
	return (!bMagic);
}

//==============================================================================
// Explicit template instantiation
//==============================================================================
//template class G3::HANDLE<G3::TEXTURE>;
*/
